<template>
  <div id="app">
 <keep-alive   :include="['hospitalNurse','hospitalizedCharge','hospital']">
    
    <router-view v-if="isRouterAlive"></router-view>
 </keep-alive>
  </div>
</template>

<script>
 
    export default {
        name: 'App',
        provide() {
          return {
            reload: this.reload,
          }
        },
        data(){
          return {
            hcData:[],
            isRouterAlive:true
          }
        },
  
        created(){
                     //  window.addEventListener('beforeunload',()=>{
         

// window.addEventListener('beforeunload', e => {

//  localStorage.removeItem('token')

//     });

        },
        methods:{
          reload() {
            this.isRouterAlive = false
            this.$nextTick(() => {
              this.isRouterAlive = true
            })
          },
        },
        
    }
</script>

<style lang="scss">
  @import './assets/iconfont/iconfont.css';
   @import './assets/iconfont/iconfontBai.css';
   .el-table .el-table__cell {
    padding: 0px 0px !important;
}
.el-form-item{
  margin-bottom: 5px;
}
.el-card__body{
padding: 5px;
}
.el-dialog__headerbtn{
      width: 50px;
    height: 50px;
    font-size: 24px;
}
</style>